package com.tulingxueyuan.mall.modules.pms.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tulingxueyuan.mall.modules.oms.model.OmsCartItem;
import com.tulingxueyuan.mall.modules.pms.model.PmsProduct;
import com.tulingxueyuan.mall.modules.pms.model.dto.ProductDetailDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 商品信息 Mapper 接口
 * </p>
 *
 * @author zhaofuhao
 * @since 2022-03-07
 */

@Repository
public interface PmsProductMapper extends BaseMapper<PmsProduct> {

    ProductDetailDTO getProductDetail(Long id);

    /**
     * 查询商品详情
     * @param productId
     * @param productSkuId
     * @return
     */
    List<OmsCartItem> getProducts(@Param("productId")Long productId,@Param("productSkuId")Long productSkuId);
}
